package com.cqjtu.platform.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author pengyangyan
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Entity
@Table(name = "parking_order")
public class ParkingOrder extends BaseEntity {

    /**
     * 车位id
     */
    @Column
    private Integer carPlaceId;

    /**
     * 车牌号
     */
    @Column
    private String plateNum;

    /**
     * 用户id'
     */
    @Column
    private Integer userId;

    /**
     * 总金额
     */
    @Column
    private Double totalPay;

    /**
     * 实际支付金额
     */
    @Column
    private Double actualPay;

    /**
     * 评论id
     */
    @Column
    private Integer commentId;

    /**
     * 订单状态
     */
    @Column
    private Integer orderStatus;

    /**
     * 进场时间
     */
    @Column
    private Date startTime;

    /**
     * 出场时间
     */
    @Column
    private Date endTime;

    /**
     * 支付状态
     */
    @Column
    private Integer payStatus;

    /**
     * 规则类别代码
     */
    @Column
    private String ruleCode;

    /**
     * 车库id
     */
    @Column
    private Integer parkingId;
}
